﻿using System.Collections.ObjectModel;

namespace Bookworm.Core
{
    public sealed class EbookToc
    {
        public string Title { get; set; }
        public string Target { get; set; }
        public int PageNumber { get; set; }
    }

    public sealed class EbookTocCollection : Collection<EbookToc>
    {
        public void Add(string title, string target, int pagenumber)
        {
            var ebookContent = new EbookToc { Title = title, Target = target, PageNumber = pagenumber };
            Add(ebookContent);
        }
    }
}